package com.threeti.mecool.core.domain.model.worker;

import java.util.Random;
import com.threeti.mecool.core.domain.model.plan.pojo.TaskAction;
import com.threeti.mecool.core.domain.model.plan.pojo.UserStep;

public class SelectMultipleActionWorker extends ActionWorker {

	@Override
	public String doAction(UserStep userStep, TaskAction action) {
		//TODO might not working as expected
		Random random = new Random(System.nanoTime());
		StringBuilder sb = new StringBuilder();
		for (int i = 0; i < 3; i++) {
			if (random.nextBoolean()) {
				sb.append(',').append(i);
			}
		}
		sb.append(',');
		return sb.toString();
	}

}
